package com.qujia.station.enums;

public enum SexFlagEnum {

    MAN_M("M","男"),
    WOMAN_W("W","女"),
    MAN_1("1","男"),
    WOMAN_2("2","女"),
    ;

    private String value;

    private String text;

    SexFlagEnum(String value, String text){
        this.value = value;
        this.text = text;
    }

    public static String getSexFlag(String value){
        for(SexFlagEnum sexFlagEnum : SexFlagEnum.values()){
            if(sexFlagEnum.getValue().equals(value)){
                return sexFlagEnum.getText();
            }
        }
        return null;
    }
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
